function sto(str) {
  console.log(str);
  let arr = str.split("?")[1].split("&");
  let obj = {};
  arr.forEach((item) => {
    let res = item.split("=");
    obj[res[0]] = res[1];
  });
  return obj;
}

module.exports = sto;
